import {request, downloadArraBuffer} from '@/utils/request'

// 查询参数列表
export function listAttr(query) {
  return request({
    url: '/codegen/attr/list',
    method: 'get',
    params: query
  })
}

// 生成
export function genCode(data) {
  return downloadArraBuffer('/codegen/code/new', data, "space.zip")
}
